﻿<!-- 
Copyright © 2011 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation. 
Java and all Java-based marks are trademarks or registered trademarks of 
Sun Microsystems, Inc. Other product and company names mentioned herein may be 
trademarks or trade names of their respective owners.

Subject to the conditions below, you may, without charge:

·  Use, copy, modify and/or merge copies of this software and 
   associated content and documentation files (the “Software”)

·  Publish, distribute, sub-licence and/or sell new software 
   derived from or incorporating the Software.

Some of the documentation, content and/or software maybe licensed under open source software or other licenses.  To the extent such documentation, content and/or software are included, licenses and/or other terms and conditions shall apply in addition and/or instead of this notice. The exact terms of the licenses, disclaimers, acknowledgements and notices are reproduced in the materials provided.

This file, unmodified, shall be included with all copies or substantial portions
of the Software that are distributed in source code form.

The Software cannot constitute the primary value of any new software derived 
from or incorporating the Software.

Any person dealing with the Software shall not misrepresent the source of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<UserControl x:Class="Carpool.RouteSelection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
   d:DesignHeight="190" d:DesignWidth="450">

    <Popup x:Name="routeselectionsPopup"  Width="450" Height="190"  IsOpen="False" >
        <Popup.RenderTransform>
            <TransformGroup>
                <TranslateTransform x:Name="routeSelectionTranslateTransform" />
            </TransformGroup>
        </Popup.RenderTransform>

        <Border BorderBrush="Black" BorderThickness="1" Margin="1">
            <Border.Background>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="#87cefa" Offset="0.46" />
                    <GradientStop Color="#000000" Offset="1.3" />
                </LinearGradientBrush>
            </Border.Background>
            <Grid x:Name="routeselectionGrid" Width="450" Height="190" Background="Transparent" ManipulationDelta="routeselectionGrid_ManipulationDelta">

                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="50" />
                    <RowDefinition Height="60" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="0" Background="#5d8eac">
                    <TextBlock FontFamily="Arial" FontSize ="16" Foreground="Black" Margin="10,7,7,0" >Route Selection</TextBlock>
                </Grid>
                <Grid Grid.Row="1" Background="Transparent">
                        <TextBlock Grid.Row="0" FontFamily="Arial" FontSize="16" Foreground="Black" Margin="10,6,2,2" 
                                   HorizontalAlignment="Left" VerticalAlignment="Center" >
                        Select route:
                        </TextBlock>
                </Grid>

                <Grid Grid.Row="2" Background="Transparent">
                        <ComboBox x:Name="routecombo" Background="White" Foreground="Black" 
                            FontFamily="Arial" FontSize="18"
                                BorderBrush="Black" BorderThickness="1" Margin="12,8,7,4"
                                  ItemsSource="{Binding}" />
                </Grid>


                <Grid Grid.Row="3" Background="Transparent">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="100" />
                        <ColumnDefinition Width="100"  />
                        <ColumnDefinition Width="100" />
                    </Grid.ColumnDefinitions>

                    <Grid Grid.Column="0"></Grid>

                    <Button x:Name="deleteButton" Grid.Column="1" Margin="0" BorderThickness="1" 
                            FontFamily="Arial" FontSize="16" Foreground="Black" Content="Delete"
                        HorizontalAlignment="Right" Height="60" Padding="3,0,0,3" Width="100" Click="deleteButton_Click" >
                        <Button.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFAFC3D4" Offset="0" />
                                <GradientStop Color="#FF6088AA" Offset="0.884" />
                                <GradientStop Color="White" Offset="0.203" />
                            </LinearGradientBrush>
                        </Button.Background>
                    </Button>

                    <Button x:Name="cancelButton" Grid.Column="2" Margin="0" BorderThickness="1" 
                            FontFamily="Arial" FontSize="16" Foreground="Black" Content="Cancel"
                        HorizontalAlignment="Right" Height="60" Padding="3,0,0,3" Width="100" Click="cancelButton_Click" >
                        <Button.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFAFC3D4" Offset="0" />
                                <GradientStop Color="#FF6088AA" Offset="0.884" />
                                <GradientStop Color="White" Offset="0.203" />
                            </LinearGradientBrush>
                        </Button.Background>
                    </Button>

                    <Button x:Name="openButton" Grid.Column="3" Margin="0" BorderThickness="1" 
                            FontFamily="Arial" FontSize="16" Foreground="Black" Content="Open"
                        HorizontalAlignment="Right" Height="60" Padding="3,0,0,3" Width="100" Click="openButton_Click" >
                        <Button.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFAFC3D4" Offset="0" />
                                <GradientStop Color="#FF6088AA" Offset="0.884" />
                                <GradientStop Color="White" Offset="0.203" />
                            </LinearGradientBrush>
                        </Button.Background>
                    </Button>
                </Grid>
            </Grid>
        </Border>
    </Popup>
</UserControl>
